<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="bootstrap/bootstrap.min.css" rel="stylesheet">
    <script src="h-ui/lib/jquery/1.9.1/jquery.js"></script>
    <script src="bootstrap/bootstrap.min.js"></script>


    <script type="text/javascript">
        $(function () {
            let reg = /\s/;
            let str = "fd kd k";
            console.log(reg.test(str));
        });
    </script>
</head>
<body>

<div class="component demo">

    <div id="modal" class="modal fade show  ">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">
                        Modal
                    </h5>
                    <button class="close" data-dismiss="modal">&times;</button>
                </div>

                <div class="modal-body">
                    <p>hello world</p>
                </div>

                <div class="modal-footer">
                    <button class="btn btn-secondary">取消</button>
                    <button class="btn btn-primary">确认</button>
                </div>

            </div>
        </div>
    </div>
    <button class="btn btn-danger" id="btn">show</button>

    <!--    <button class="btn btn-primary" data-toggle="modal" data-target="#modal">显示</button>-->
</div>

</body>
</html>